package com.qf.enums;

import lombok.Getter;

@Getter
public enum OAExceptionEnum {
    USER_PARAM_ERROR(2,"用户名或密码不能为空"),

    USER_NOT_EXISTS(3,"用户名不存在"),

    USER_PASSWORD_ERROR(4,"用户名密码错误"),

    INFO_PARAM_ERROR(9,"参数不合法"),

    TRIP_ADD_ERROR(10,"添加旅游信息失败"),

    TRIP_DELETE_ERROR(11,"删除旅游信息失败"),

    PIC_EXISTS(81,"图片内容为空!!"),

    PIC_TOO_BIG(82,"图片过大!!"),

    PIC_TYPE_ERROR(83,"图片类型不正确!!"),

    PIC_ALREADY_BROKEN(84,"图片已经损坏!!"),;


    private Integer code;

    private String msg;

    OAExceptionEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
